projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f60d76
)
[HVM][SVM] Save/Restore: Remove commented out code
author
Tim Deegan
<Tim.Deegan@xensource.com>
Mon, 26 Feb 2007 17:20:36 +0000
(17:20 +0000)
committer
Tim Deegan
<Tim.Deegan@xensource.com>
Mon, 26 Feb 2007 17:20:36 +0000
(17:20 +0000)
Code not needed by SVM as the "VM_ENTRY_CONTROLS" register doesn't
exist.
Signed off: Mats Petersson (mats.petersson@amd.com)
xen/arch/x86/hvm/svm/svm.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/hvm/svm/svm.c
b/xen/arch/x86/hvm/svm/svm.c
index fcff16a67c9ea5436362ef0b6d1c54484ea85c7f..1e9d3eea243d6b500f6592722533fb1b0f7eaf1e 100644
(file)
--- a/
xen/arch/x86/hvm/svm/svm.c
+++ b/
xen/arch/x86/hvm/svm/svm.c
@@
-502,15
+502,6
@@
int svm_vmcb_restore(struct vcpu *v, struct hvm_hw_cpu *c)
}
skip_cr3:
-#if defined(__x86_64__) && 0
- if (vmx_long_mode_enabled(v)) {
- unsigned long vm_entry_value;
- vm_entry_value = __vmread(VM_ENTRY_CONTROLS);
- vm_entry_value |= VM_ENTRY_IA32E_MODE;
- __vmwrite(VM_ENTRY_CONTROLS, vm_entry_value);
- }
-#endif
-
vmcb->cr4 = c->cr4 | SVM_CR4_HOST_MASK;
v->arch.hvm_svm.cpu_shadow_cr4 = c->cr4;